package cn.com.wblog.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.codec.digest.DigestUtils;

public class Utils {
	public static String MD5Code(String str) {
		return DigestUtils.md5Hex(str);
	}
	
	public static String renameFile() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmSSssss");
		return sdf.format(new Date());
	}
}
